html, body {
  margin: 0;
  background-color: #efefef;
  font-family: sans-serif;
}
h3 {
  margin: 0;
}
.wrapper {
  width: 90%;
  max-width: 500px;
  height: 600px;
  padding: 5px;
  margin: 0 auto;
  background-color: #ddd;
}
#loginWrapper {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(5, 5, 5, .6);
  color: #fff;
  display: block;
  padding-top: 200px;
}
#info {
  text-align: center;
  font-size: 20px;
}
#nickWrapper {
  display: none;
  text-align: center;
}
#nicknameInput {
  padding: 1em 0.5em;
}
#loginBtn {
  padding: 1em;
}

.banner {
  height: 40px;
  line-height: 40px;
  width: 100%;
}
.banner .name {
  font-size: 18px;
  font-weight: bold;
}
.banner #status {
  color: rgba(0, 0, 0, .5);
}
.banner p {
  float: left;
  display: inline-block;
}
.controls {
  height: 145px;
  margin: 5px 0px;
  position: relative;
}
#historyMsg {
  height: 400px;
  background-color: #fff;
  overflow: auto;
  /*padding: 2px;*/
}
#historyMsg > p {
  padding: 0 .5em;
}
.sendImg,
.sendMusic,
.sendEmoji,
.sendMsg {
  padding: .5em;
  border: 1px solid rgba(0, 0, 0, .5);
  border-radius: 5px;
  margin-left: 1em;
  margin-top: .5em;
}
.sendMsg {
  max-width: 90%;
  line-height: 1.5;
  /*text-indent: 2em;*/
  border: 0;
  margin-top: 0;
  padding-left: 0;
}
.sendImg {
  display: block;
  width: 40%;
  text-decoration: none;
}
.sendEmoji {
  width: 15%;
}
.sendMusic {
  width: 80%;
}
#historyMsg img {
  display: block;
  width: 100%;
}
.timespan {
  color: blue;
  margin-left: .5em;
}
.items {
  height: 45px;
}
.items > label,
.items > input {
  width: 50px;
  padding: .5em;
}
#colorStyle {
  width: 50px;
  border: none;
}
/*custom the file input*/

.imageLable {
  position: relative;
}
.musicLable {
  position: relative;
  margin-left: -0.5em
}
#sendMusicBtn,
#sendImageBtn {
  width: 50px;
  padding: .5em;
}
#sendMusic,
#sendImage {
  position: absolute;
  width: 60px;
  height: 100%;
  left: 0;
  opacity: 0;
  overflow: hidden;
}
/*end custom file input*/
.userInput {
  width: 100%;
}
#messageInput {
  width: 75%;
  max-width: 440px;
  height: 76px;
  max-height: 76px;
  font-size: 18px;
  padding: .5em;
  border-radius: 5px;
  border: 1px solid rgba(0, 0, 0, .5);
}
#sendBtn {
  width: 20%;
  font-size: 18px;
  padding: .5em 0;
  text-align: center;
  max-width: 80px;
  height: 96px;
  border-radius: 5px;
  border: 1px solid rgba(0, 0, 0, .5);
  float: right;
  background: #14d212;
  color: #fff;
}
#emojiWrapper {
  width: 500px;
  bottom: 155px;
  left: 0;
  position: absolute;
  background-color: #aaa;
  box-shadow: 0 0 10px #555;
}
#emojiWrapper img {
  margin: 2px;
  padding: 2px;
  width: 25px;
  height: 25px;
}
#emojiWrapper img:hover {
  background-color: blue;
}
.emoji{
  display: inline;
}
footer {
  text-align: center;
}
@media (max-width: 830px) {
  #emojiWrapper {
    width: 100%;
    height: 20vh;
    overflow: auto;
  }
  .wrapper {
    height: 100vh;
    width: 100%;
    padding: 0;
  }
  .banner {
    height: 10vh;
    line-height: 10vh;
  }
  #historyMsg {
    height: 68vh;
  }
  #sendBtn {
    width: 15%;
    height: calc(100% - 12px);
  }
  .controls {
    height: 22vh;
    margin-bottom: 0;
  }
  .userInput {
    height: calc(22vh - 45px);
    width: calc(100% - 1em);
    margin: 0 .5em;
  }
  #messageInput {
    /*width: 70%;*/
    height: calc(100% - 20px);
    max-height: calc(100% - 30px);
  }
  #emojiWrapper {
    bottom: 22vh;
  }
}
.isNone {
  display: none;
}
.isBlock {
  display: block;
}
